package com.zcf.mapper;

import com.zcf.pojo.RoomRecord;
import com.zcf.vo.out.recordOut;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZhaoQi
 * @since 2019-03-18
 */
public interface RoomRecordMapper extends BaseMapper<RoomRecord> {

	List<recordOut> selectRecord(String roomNum);
	
	List<recordOut> selectRoom(String uid);

	int selectsumnum(@Param("uid")String uid ,@Param("roomNum")String roomNum);
	
	int selectcount();
	
	Integer selecttlossmoney(@Param("uid")String uid);//获取今日消耗
	
	Integer selectsumloss(@Param("uid")String uid,@Param("clubid")String clubid);//获取总消耗
	
	Integer selectmaxgameid(@Param("uid")String uid,@Param("roomNum")String roomNum);
	
}
